package com.huiyeji.dynamic.core.handler;


import com.huiyeji.dynamic.core.DynamicContext;

public class ReturnPrefixHandler implements PrefixHandler {

    private final String returnName;

    public ReturnPrefixHandler(String returnName){
        this.returnName = returnName;
    }

    @Override
    public void preHandle(DynamicContext context) {

    }

    @Override
    public void postHandle(DynamicContext context) {
        context.returnObject(returnName);
    }
}
